#include <regx52.h>
#include "Delay.h"
#include "MatrixLED.h"

unsigned char i;
unsigned char Count;
unsigned int Offest;

void main()
{
	MatrixLED_Init();
	while(1)
	{
		for(i=0;i<8;i++)	//显示8列
		{
		MatrixLED_ShowColumn(Animation[i+Offest],i);
		}
		Count++;
		if(Count == 10)		//这里不能用Delay，会打断点阵屏扫描，多显示几次以达到延时显示的效果
		{
			Count = 0;
			Offest++;		//改变显示的初始位置，以达到流动的效果
			if(Offest>36)
			{
				Offest = 0;
			}
		}
		
	}
}